{template admin_improt}
<script language="javascript">
KE.show({        
	id : 'content', //TEXTAREA输入框的ID    
	resizeMode : 1,
    cssPath : './index.css',
    urlType: 'absolute',
    items : [
    'fontname', 'fontsize', 'textcolor', 'bgcolor', 'bold', 'italic', 'underline',
    'removeformat', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
    'insertunorderedlist', 'emoticons', 'image', 'link']
});
</script>
<style type="text/css">
<!--
.errorStyle{width:750px;margin:5px;padding:5px;background:#FFD4C9;border:1px solid #FF724F;}
-->
</style>

<div class="mainStyle">
	<div class="mainTitle">
		<span class="mainTitle_text">
			首页banner添加
		</span>
	</div>
	{if $errtitle}<div class="errorStyle">{$errtitle}</div>{/if}
	{if $path_err}<div class="errorStyle">{$path_err}</div>{/if}
	
	<form action="admin.php?p=home_banner&a=bannerSave" method="post" enctype="multipart/form-data">
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="11%" height="36" align="right">图片banner描述：</td>
				<td width="89%">
					<input type="text"name="title" id="title" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['title']}"/> <span style="color:red;">*</span>
				</td>
			</tr>
			
			<tr>
				<td width="11%" height="36" align="right">url链接：</td>
				<td width="89%">
					<input type="text"name="url" id="url" style="width:300px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['url']}"/> <span style="color:red;">*地址必须以 http:// 开头</span>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">用户ID：</td>
				<td width="89%">
					<input type="text"name="user_id" id="user_id" style="width:60px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['u_id']}"/>
				</td>
			</tr>
			
	        <tr>
				<td height="39" align="right">LOGO：</td>
				<td>
					<input name="image_url" type="file"  style="width:250px;padding:3px;border:1px solid #bbbbbb;" /><span style="margin-left:10px;color:#ff0000">(*只能使用jpg或者gif格式)</span> 
					<div id="imgDiv_min"></div>
					<div id="imgDiv_min_old"><!--{if $data["image_url"] != ""}--> <a href="data/upImage/home_banner/{$data['image_url']}" target="_blank"><img width="100" height="100" src="data/upImage/home_banner/{$data['image_url']}" border="0"/></a><!--{/if}--></div>
				</td>
	        </tr>
			<tr>
				<td width="11%" height="36" align="right">是否有效：</td>
				<td width="89%">
					<input type="radio" name="is_ok" id="is_ok" {if $data['is_ok'] == 1}checked="checked"{/if} value="1" >是
					<input type="radio" name="is_ok" id="is_ok" {if $data['is_ok'] == 2}checked="checked"{/if} value="2">否
				</td>
			</tr>		
			<tr>
				<td height="48" align="right"></td>
				<td>
					<input type="hidden" id="active_type" name="active_type" value="{$active_type}">
					<input type="hidden" id="id" 	name="id" 		value="{$data['id']}">
					<input type="submit" name="Submit" value=" 保存 " />
				</td>
			</tr>
		</table>
	</form>
</div>
{template admin_bottom}